package com.community.web.master.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.community.model.entity.User;
import com.community.web.master.domain.dto.GiveRoleDto;
import com.community.web.master.domain.dto.PageUserDto;
import com.community.web.master.domain.dto.UserLoginDto;
import com.community.web.master.domain.vo.PageResult;
import com.community.web.master.domain.vo.UserLoginVo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李晶
 * @since 2024-07-02
 */
public interface IUserService extends IService<User> {
    /**
     * 用户登录
     * @param userLoginDto
     * @return
     */
    UserLoginVo login(UserLoginDto userLoginDto, HttpServletRequest request);

    PageResult pageQuery(PageUserDto pageUserDto);

    void giveRole(GiveRoleDto giveRoleDto);
}
